package com.systemdevelopment.mainproject.View.Admin;

import com.jfoenix.controls.JFXButton;
import com.systemdevelopment.mainproject.View.NormalUser.NormalUserMenuController;
import com.systemdevelopment.mainproject.View.NormalUser.PersonalRecordController;
import com.systemdevelopment.mainproject.View.mainUI;
import com.systemdevelopment.mainproject.View.oneInstanceController;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;

public class AdminMenuController extends NormalUserMenuController {

    @FXML
    void gotoBookTablePane(ActionEvent event) {
        closeDrawer();
        mainUI.loadContentPane("./Admin/BookTablePane.fxml");
        ((BookTableController)oneInstanceController.getController("BookTableController")).InitTable();

    }
    @FXML
    void gotoBorrowRecordPane(ActionEvent event) {
        closeDrawer();
        mainUI.loadContentPane("./Admin/BorrowRecordPane.fxml");
        ((RecordController) oneInstanceController.getController("RecordController")).InitTable();

    }


}
